home *** CD-ROM | disk | FTP | other *** search
- package views
- {
- import flash.accessibility.*;
- import flash.debugger.*;
- import flash.display.*;
- import flash.errors.*;
- import flash.events.*;
- import flash.external.*;
- import flash.filters.*;
- import flash.geom.*;
- import flash.media.*;
- import flash.net.*;
- import flash.printing.*;
- import flash.profiler.*;
- import flash.system.*;
- import flash.text.*;
- import flash.ui.*;
- import flash.utils.*;
- import flash.xml.*;
- import mx.binding.*;
- import mx.containers.Canvas;
- import mx.controls.Image;
- import mx.controls.Label;
- import mx.core.UIComponentDescriptor;
- import mx.core.mx_internal;
- import mx.events.PropertyChangeEvent;
- import mx.styles.*;
-
- public class SplashImage extends Canvas
- {
- private static var _watcherSetupUtil:IWatcherSetupUtil;
-
- private var _bindings:Array;
-
- [Bindable]
- private var _1850815144splashString:String;
-
- public var _bindingsByDestination:Object;
-
- [Bindable]
- private var _607087478_Image2:Image;
-
- [Bindable]
- private var _903579360shadow:Canvas;
-
- [Bindable]
- private var _174950364splashImg:Image;
-
- [Bindable]
- private var _199389162bgImage:String;
-
- [Bindable]
- private var _607087479_Image3:Image;
-
- public var _bindingsBeginWithWord:Object;
-
- [Bindable]
- private var _681920764_Label1:Label;
-
- private var tagline:Class;
-
- private var mainLogo:Class;
-
- [Bindable]
- private var _681920765_Label2:Label;
-
- private var _watchers:Array;
-
- private var _documentDescriptor_:UIComponentDescriptor;
-
- public function SplashImage()
- {
- _documentDescriptor_ = new UIComponentDescriptor({
- "type":Canvas,
- "propertiesFactory":function():Object
- {
- return {"childDescriptors":[new UIComponentDescriptor({
- "type":Canvas,
- "id":"shadow",
- "stylesFactory":function():void
- {
- this.backgroundColor = 0;
- },
- "propertiesFactory":function():Object
- {
- return {
- "x":2,
- "y":2,
- "width":720,
- "height":720
- };
- }
- }),new UIComponentDescriptor({
- "type":Image,
- "id":"splashImg",
- "events":{"init":"__splashImg_init"},
- "propertiesFactory":function():Object
- {
- return {
- "x":0,
- "y":0,
- "width":720,
- "height":720
- };
- }
- }),new UIComponentDescriptor({
- "type":Image,
- "id":"_Image2",
- "stylesFactory":function():void
- {
- this.horizontalCenter = 0;
- },
- "propertiesFactory":function():Object
- {
- return {"y":0};
- }
- }),new UIComponentDescriptor({
- "type":Image,
- "id":"_Image3",
- "propertiesFactory":function():Object
- {
- return {
- "x":462,
- "y":655
- };
- }
- }),new UIComponentDescriptor({
- "type":Label,
- "id":"_Label1",
- "stylesFactory":function():void
- {
- this.letterSpacing = -5;
- this.kerning = true;
- },
- "propertiesFactory":function():Object
- {
- return {
- "x":451,
- "y":549,
- "styleName":"splashStringDk",
- "alpha":0.45
- };
- }
- }),new UIComponentDescriptor({
- "type":Label,
- "id":"_Label2",
- "stylesFactory":function():void
- {
- this.letterSpacing = -5;
- this.kerning = true;
- },
- "propertiesFactory":function():Object
- {
- return {
- "x":449,
- "y":547,
- "styleName":"splashStringLt",
- "alpha":0.9
- };
- }
- })]};
- }
- });
- mainLogo = SplashImage_mainLogo;
- tagline = SplashImage_tagline;
- super();
- mx_internal::_document = this;
- if(!this.styleDeclaration)
- {
- this.styleDeclaration = new CSSStyleDeclaration();
- }
- this.styleDeclaration.defaultFactory = function():void
- {
- this.horizontalCenter = 0;
- this.verticalCenter = 0;
- };
- }
-
- public static function set watcherSetupUtil(param1:IWatcherSetupUtil) : void
- {
- SplashImage._watcherSetupUtil = param1;
- }
-
- [Bindable(event="propertyChange")]
- public function get bgImage() : String
- {
- return this._199389162bgImage;
- }
-
- [Bindable(event="propertyChange")]
- public function get splashImg() : Image
- {
- return this._174950364splashImg;
- }
-
- public function set bgImage(param1:String) : void
- {
- var _loc2_:Object = null;
- _loc2_ = this._199389162bgImage;
- if(_loc2_ !== param1)
- {
- this._199389162bgImage = param1;
- dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"bgImage",_loc2_,param1));
- }
- }
-
- private function _SplashImage_bindingExprs() : void
- {
- var _loc1_:* = undefined;
- _loc1_ = [new GlowFilter(0,0.5,10,10),new DropShadowFilter(5,180,0,0.5)];
- _loc1_ = "images/" + bgImage;
- _loc1_ = mainLogo;
- _loc1_ = tagline;
- _loc1_ = splashString;
- _loc1_ = splashString;
- }
-
- [Bindable(event="propertyChange")]
- public function get _Label2() : Label
- {
- return this._681920765_Label2;
- }
-
- private function imageInit(param1:Event) : void
- {
- shadow.width = splashImg.width = splashImg.contentWidth;
- shadow.height = splashImg.height = splashImg.contentHeight;
- this.visible = true;
- }
-
- [Bindable(event="propertyChange")]
- public function get _Label1() : Label
- {
- return this._681920764_Label1;
- }
-
- [Bindable(event="propertyChange")]
- public function get shadow() : Canvas
- {
- return this._903579360shadow;
- }
-
- [Bindable(event="propertyChange")]
- public function get splashString() : String
- {
- return this._1850815144splashString;
- }
-
- public function set _Label1(param1:Label) : void
- {
- var _loc2_:Object = null;
- _loc2_ = this._681920764_Label1;
- if(_loc2_ !== param1)
- {
- this._681920764_Label1 = param1;
- dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"_Label1",_loc2_,param1));
- }
- }
-
- public function set _Label2(param1:Label) : void
- {
- var _loc2_:Object = null;
- _loc2_ = this._681920765_Label2;
- if(_loc2_ !== param1)
- {
- this._681920765_Label2 = param1;
- dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"_Label2",_loc2_,param1));
- }
- }
-
- public function set shadow(param1:Canvas) : void
- {
- var _loc2_:Object = null;
- _loc2_ = this._903579360shadow;
- if(_loc2_ !== param1)
- {
- this._903579360shadow = param1;
- dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"shadow",_loc2_,param1));
- }
- }
-
- public function set splashString(param1:String) : void
- {
- var _loc2_:Object = null;
- _loc2_ = this._1850815144splashString;
- if(_loc2_ !== param1)
- {
- this._1850815144splashString = param1;
- dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"splashString",_loc2_,param1));
- }
- }
-
- public function set _Image3(param1:Image) : void
- {
- var _loc2_:Object = null;
- _loc2_ = this._607087479_Image3;
- if(_loc2_ !== param1)
- {
- this._607087479_Image3 = param1;
- dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"_Image3",_loc2_,param1));
- }
- }
-
- public function set _Image2(param1:Image) : void
- {
- var _loc2_:Object = null;
- _loc2_ = this._607087478_Image2;
- if(_loc2_ !== param1)
- {
- this._607087478_Image2 = param1;
- dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"_Image2",_loc2_,param1));
- }
- }
-
- private function _SplashImage_bindingsSetup() : void
- {
- var binding:Binding = null;
- if(!_bindings)
- {
- _bindings = [];
- }
- if(!_watchers)
- {
- _watchers = [];
- }
- binding = new Binding(this,function():Array
- {
- return [new GlowFilter(0,0.5,10,10),new DropShadowFilter(5,180,0,0.5)];
- },function(param1:Array):void
- {
- shadow.filters = param1;
- },"shadow.filters");
- _bindings[0] = binding;
- binding = new Binding(this,function():Object
- {
- return "images/" + bgImage;
- },function(param1:Object):void
- {
- splashImg.source = param1;
- },"splashImg.source");
- _bindings[1] = binding;
- binding = new Binding(this,function():Object
- {
- return mainLogo;
- },function(param1:Object):void
- {
- _Image2.source = param1;
- },"_Image2.source");
- _bindings[2] = binding;
- binding = new Binding(this,function():Object
- {
- return tagline;
- },function(param1:Object):void
- {
- _Image3.source = param1;
- },"_Image3.source");
- _bindings[3] = binding;
- binding = new Binding(this,function():String
- {
- var _loc1_:* = undefined;
- var _loc2_:* = undefined;
- _loc1_ = splashString;
- return _loc1_ == undefined ? null : String(_loc1_);
- },function(param1:String):void
- {
- _Label1.text = param1;
- },"_Label1.text");
- _bindings[4] = binding;
- binding = new Binding(this,function():String
- {
- var _loc1_:* = undefined;
- var _loc2_:* = undefined;
- _loc1_ = splashString;
- return _loc1_ == undefined ? null : String(_loc1_);
- },function(param1:String):void
- {
- _Label2.text = param1;
- },"_Label2.text");
- _bindings[5] = binding;
- }
-
- [Bindable(event="propertyChange")]
- public function get _Image3() : Image
- {
- return this._607087479_Image3;
- }
-
- [Bindable(event="propertyChange")]
- public function get _Image2() : Image
- {
- return this._607087478_Image2;
- }
-
- override public function initialize() : void
- {
- var target:SplashImage = null;
- var watcherSetupUtilClass:Object = null;
- mx_internal::setDocumentDescriptor(_documentDescriptor_);
- _SplashImage_bindingsSetup();
- target = this;
- if(_watcherSetupUtil == null)
- {
- watcherSetupUtilClass = getDefinitionByName("_views_SplashImageWatcherSetupUtil");
- watcherSetupUtilClass["init"](null);
- }
- _watcherSetupUtil.setup(this,function(param1:String):*
- {
- return target[param1];
- },_bindings,_watchers);
- super.initialize();
- }
-
- public function __splashImg_init(param1:Event) : void
- {
- imageInit(param1);
- }
-
- public function set splashImg(param1:Image) : void
- {
- var _loc2_:Object = null;
- _loc2_ = this._174950364splashImg;
- if(_loc2_ !== param1)
- {
- this._174950364splashImg = param1;
- dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"splashImg",_loc2_,param1));
- }
- }
- }
- }
-
-